﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Bill_Staff.aspx.cs" Inherits="Admin_Bill_Staff" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <br />
            <asp:Label ID="Label8" runat="server" Text="Enter Mobile Number"></asp:Label>
            <asp:TextBox ID="txtMobileNumber" runat="server" Width="243px"></asp:TextBox>
            <asp:Button ID="btnMobileNumber" runat="server" OnClick="btnMobileNumber_Click" Text="Search" />
            <br />
            <br />
        
                <asp:Label ID="Label7" runat="server" Text="Search By Account"></asp:Label>
        
                <asp:TextBox ID="txtSearchUserAccount" runat="server" Width="259px"></asp:TextBox>
                <asp:Label ID="Label3" runat="server" Text="Search Field"></asp:Label>
                <asp:DropDownList ID="ddlUserAccount" runat="server">
                    <asp:ListItem Value="_name">FullName</asp:ListItem>
                    <asp:ListItem Value="_userName">UserName</asp:ListItem>
                    <asp:ListItem Value="_email">Email</asp:ListItem>
                    <asp:ListItem Value="_adress">Adress</asp:ListItem>
                </asp:DropDownList>
                <asp:Button ID="btnSearchUserAccount" runat="server" OnClick="btnSearchUserAccount_Click" Text="Search" />
                <asp:Button ID="btnShowAllUserAccount" runat="server" OnClick="btnShowAllUserAccount_Click" Text="Show All" />
            <br />
                <asp:GridView ID="gdvSearchByUserAccount" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="id_UA" ForeColor="#333333" GridLines="None" OnPageIndexChanging="gdvSearchByUserAccount_PageIndexChanging" OnRowUpdating="gdvSearchByUserAccount_RowUpdating" PageSize="5" Width="753px" ShowHeaderWhenEmpty="True">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="ID_UA" HeaderText="id_UA" Visible="False" />
                        <asp:BoundField DataField="userName" HeaderText="UserName" />
                        <asp:BoundField DataField="name" HeaderText="Full Name" />
                        <asp:BoundField DataField="dateOfBirth" HeaderText="BirthDay" />
                        <asp:TemplateField HeaderText="Sex">
                            <ItemTemplate>
                                <asp:Label ID="Label5" runat="server" Text='<%# Convert.ToInt32(Eval("sex"))==1?"Male" : "Female" %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="email" HeaderText="Email" />
                        <asp:BoundField DataField="adress" HeaderText="Adress" />
                        <asp:TemplateField HeaderText="Mobile">
                            <ItemTemplate>
                                <asp:ImageButton ID="ImageButton1" runat="server" CommandName="update" Height="23px" ImageUrl="~/Admin/Images/icon_Select.png" Width="30px" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
                <br />
            <asp:GridView ID="gdvMobileNumber" runat="server" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="id_MN" ForeColor="#333333" GridLines="None" OnRowUpdating="gdvMobileNumber_RowUpdating" Width="374px">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="Id_MN" HeaderText="ID" />
                    <asp:BoundField DataField="phone" HeaderText="Mobile Number" />
                    <asp:TemplateField HeaderText="Bill">
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButton2" runat="server" CommandName="update" Height="23px" ImageUrl="~/Admin/Images/icon_Select.png" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
            <br />
            <asp:Label ID="lblStatus" runat="server" ForeColor="Red" Text="Label"></asp:Label>
            <br />
                <br />

            <br />
            <br />
            <br />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

